﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using ReallyReallyReallySimpleRoguelike.Entities;
using ReallyReallyReallySimpleRoguelike;
using ReallyReallyReallySimpleRoguelike.Managers;
using System.Timers;
using System.Threading;
using System.IO;


namespace ReallyReallyReallySimpleRogueLike
{
    /// <summary>
    /// Main entry point.
    /// </summary>
    class ReallyReallyReallySimpleRogueLike
    {
        /// <summary>
        /// Main Entry Point
        /// </summary>
        /// <param name="args"></param>
        private static void Main(string[] args)
        {

            //border is hardcoded here as 5
            //This is ok but we should support user resizing.
            //Console.SetWindowSize(Console.LargestWindowWidth-5,Console.LargestWindowHeight-5);
            //Console.SetBufferSize(Console.LargestWindowWidth-5, Console.LargestWindowHeight-5);
            Console.SetWindowSize(Constants.ConsoleWidth, Constants.ConsoleHeight);
            Console.SetBufferSize(Constants.ConsoleWidth, Constants.ConsoleHeight);
            Console.Title= "RRRSRogueLike";


            //This is needed to initialize other parts of the game.
            DungeonManager.Instance.Initialize();
            
            //Run the fun.
            GameManager.Instance.Run();
        }

    }
}

